package org.huangrui.spark.scala.core.rdd.operate.action

import org.apache.spark.{SparkConf, SparkContext}


/**
 * @Author hr
 * @Create 2024-10-18 9:25
 */
object Spark03_Operate_Action_3_IOLoad {
  def main(args: Array[String]): Unit = {
    val conf = new SparkConf().setMaster("local[*]").setAppName("spark")
    val sc = new SparkContext(conf)

    sc.textFile("output").foreach(println)
    sc.objectFile("output1").foreach(println)

    sc.stop()
  }
}
